@import './main.scss';
$jdred:#e2231a;

.cart-header {
    margin-top: 30px;
    height: 87px;
}

.cart-main-header {
    margin-top: 20px;


    >span {
        display: block;
        width: 100%;
    }

    span:nth-of-type(1) {
        color: $jdred;
        font-size: 1.1em;
        font-weight: bold;
        margin-bottom: 10px;

        p {

            span {
                padding-left: 10px;
            }
        }
    }
}

.noData,
.noLogin {
    display: none;
    margin-top: 0;
    width: 100%;
    text-align: center;
    font-size: 1.5em;

    a {
        color: #e2231a;
    }
}

.cart-nav {
    border: 1px solid #e9e9e9;
    background: #f3f3f3;
    height: 32px;
    line-height: 32px;
    margin: 0 0 10px;
    padding: 5px 0;

    .delChecked {
        cursor: pointer;
    }

    li {
        float: left;
    }

    li:nth-of-type(1) {
        min-height: 18px;
        line-height: 18px;
        padding-top: 7px;
        width: 122px;
        padding-left: 11px;
    }

    li:nth-of-type(2) {
        width: 208px;
    }

    li:nth-of-type(3) {
        width: 140px;
        height: 32px;
        padding: 0 10px 0 20px;
        text-align: center;
    }

    li:nth-of-type(4) {
        width: 120px;
        padding-right: 50px;
        text-align: right;
    }

    li:nth-of-type(5) {
        width: 80px;
        text-align: center;
    }

    li:nth-of-type(6) {
        width: 100px;
        padding-right: 40px;
        text-align: right;
    }

    li:nth-of-type(7) {
        width: 75px;
        text-align: center;
    }
}

.cart-list {
    min-height: 800px;

    .items {
        position: relative;
        height: 107px;
        border-top: 1px solid #c5c5c5;
        line-height: 20px;
        background: #fff;
        padding: 0 0 1px 40px;
        box-sizing: border-box;
        clear: both;

        li {
            padding: 15px 0 10px;
            cursor: pointer;

            &:hover {
                color: $jdred;
            }
        }

        li:nth-of-type(1) {
            width: 30px;
            min-height: 10px;
            margin-left: 10px;
            position: absolute;
            left: 0;
            top: 0;
        }

        li:nth-of-type(2) {
            width: 300px;

            a {
                margin-right: 10px;
                background: #fff;
                padding: 0;
                text-align: center;
                @include flx(space-around);
                width: 300px;

                img {
                    width: 80px;
                    height: 80px;
                    margin-right: 10px;
                }

                p {
                    text-align: left;
                }
            }
        }

        li:nth-of-type(3) {
            padding: 15px 10px 0 20px;
        }

        li:nth-of-type(4) {
            position: relative;
            width: 125px;
            padding-right: 40px;
            text-align: right;
            outline: none;
        }

        li:nth-of-type(5) {
            width: 85px;
            padding-left: 5px;

            .cart-num {
                width: 85px;
                border: 0;
                @include flx(flex-start, center);

                button {
                    outline: 0;
                    text-align: center;
                    box-sizing: border-box;
                    height: 20px;
                    color: #232326;
                    border: 1px solid #cbcbcb;
                    background: #fff;
                    line-height: 18px;
                    margin-top: 1px;
                    padding: 0;
                    background-color: #F1F1F1;
                }
            }

            .btn_del {
                border-width: 1px;
                background: #f1f1f1;
                width: 17px;
                height: 20px;
                line-height: 16px;

                i:before {
                    content: "-";
                }

            }

            .btn_del i,
            .btn_add i {
                display: inline-block;
            }

            .numInput {
                outline: 0;
                text-align: center;
                box-sizing: border-box;
                width: 46px;
                height: 20px;
                color: #232326;
                border: 1px solid #cbcbcb;
                background: #fff;
                line-height: 18px;
            }

            .btn_add {
                border-width: 1px;
                background: #f1f1f1;
                width: 17px;
                height: 20px;
                line-height: 16px;
                vertical-align: middle;

                i:before {
                    content: "+";
                }
            }

            p {
                display: none;
            }
        }
    }

    li:nth-of-type(6) {
        width: 95px;
        padding-right: 40px;
        text-align: right;
    }

    li:nth-of-type(7) {
        width: 75px;
    }
}


.cart-bottom-bar-wrap {
    position: fixed;
    background: #fff;
    box-shadow: 0 -1px 8px rgb(0 1 1 / 8%);
    transform: translateZ(0px);
    top: auto;
    bottom: 0px;
    float: left;
    z-index: 23;
}

.cart-list {
    padding-bottom: 52px;
}

.cart-bottom-bar {
    position: relative;
    height: 52px;

    ul {
        height: 44px;
        margin: 0;
        position: absolute;
        bottom: 0;
        box-sizing: border-box;
        background-color: white;
        border: 0;
    }

    li:nth-of-type(1) {
        width: 50px;
    }

    li:nth-of-type(2) {
        margin-right: 150px;
    }

    li:nth-of-type(3) {
        width: 100;
    }

    .totalPrice,
    .totalPrice {
        display: inline-block;
        color: $jdred;
        font-weight: bold;
        padding: 0 3px;
    }

    .checkedNum {
        color: $jdred;
        font-size: 1.5em;
        padding: 0 3px;
    }
}

.settled {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 52px;
    line-height: 52px;
    background-color: $jdred;
    color: white;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
}